package com.hs.jhzd.repository;

import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.hs.jhzd.entity.Disease;

public interface DiseaseRepository extends JpaRepository<Disease, Long> {

  @Query("select u from Disease u where u.code like  CONCAT(:categoryCode,'%') order by code")
  List<Disease> findByCategoryCode(@Param("categoryCode") String categoryCode);

}
